import { Broker } from "./Broker";
import { Publish } from "./Publish";
import { SubScribe } from "./Subscribe";

const broker = new Broker()

const publish = new Publish(broker)

const subscribe = new SubScribe(1,broker)

subscribe.subscribe('h')
subscribe.subscribe('b')


publish.publish('h','哈哈')

publish.publish('b','嘿嘿')